package com.example.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeAction {

    @RequestMapping("/")
    public String home(Model model) {
        model.addAttribute("welcome", "首页欢迎你!");
        return "home";
    }

}
